
<!--已经登陆成功-->
<if condition="is_login()">
    <div class="subnav am-u-sm-12 am-u-md-6 am-u-lg-6 am-text-right am-padding-0-sm am-margin-0-sm am-margin-vertical-md am-margin-vertical-lg">
        <p>欢迎[{$self.nickname}]登录寿光志愿者！</p>
        <p class="">
            <a href="javascript:;" event-node="logout"  class="op-center">{:L('_LOGOUT_')}</a>
            <a href="{:U('Ucenter/index/following',array('uid'=>$self['uid']))}" class="op-center">个人中心</a>
        </p>
    </div>
   <else/>
    <!--已经登陆成功-->
    <!--还未登陆-->
    <php>
        $open_quick_login=modC('OPEN_QUICK_LOGIN', 0, 'USERCONFIG');
        $register_type=modC('REGISTER_TYPE','normal','Invite');
        $register_type=explode(',',$register_type);
        $only_open_register=0;
        if(in_array('invite',$register_type)&&!in_array('normal',$register_type)){
        $only_open_register=1;
        }
    </php>
    <script>
        var OPEN_QUICK_LOGIN = "{$open_quick_login}";
        var ONLY_OPEN_REGISTER = "{$only_open_register}";
    </script>
    <div class="subnav am-u-sm-12 am-u-md-6 am-u-lg-6 am-text-right am-padding-0-sm am-margin-0-sm am-margin-vertical-md am-margin-vertical-lg">
        <p class="am-hide-sm-only">&nbsp;</p>
        <p class="">
            <a class="logout" data-login="do_login">{:L('_LOGIN_')}</a>
            <a class="op-center" data-role="do_register" data-url="{:U('Ucenter/Member/register')}">{:L('_REGISTER_')}</a>
        </p>
    </div>
   </if>
    <!--还未登陆-->